import request from '@/utils/request'


//更新订单状态
export function updateStatus(status, ids) {
  return request({
    url: '/shopee/order/update/status/' + status + '/' + ids,
    method: 'post'
  })
}

// 同步订单
export function syncOrder() {
  return request({
    url: '/shopee/order/sync',
    method: 'get'
  })
}

// 查询打包订单列表
export function listOrder(query) {
  return request({
    url: '/shopee/order/list',
    method: 'get',
    params: query
  })
}

// 打印
export function printOrder(orderSn) {
  return request({
    url: '/shopee/order/print/' + orderSn,
    method: 'get'
  })
}

// 查询打包订单列表
export function listAllSupplier() {
  return request({
    url: '/store/supplier/all',
    method: 'get'
  })
}

// 查询订单详细
export function getOrder(orderSn) {
  return request({
    url: '/shopee/order/' + orderSn,
    method: 'get'
  })
}

// 修改订单信息
export function updateOrder(data) {
  return request({
    url: '/shopee/order',
    method: 'put',
    data: data
  })
}

// 查询打包订单列表
export function getInCancelOrder() {
  return request({
    url: '/shopee/order/get/inCancel',
    method: 'get'
  })
}


